package service.user;

import java.util.List;

import persistence.user.UserDao;
import dao.User;

public class UserDaoService implements UserService {

	private UserDao dao;

	@Override
	public void deleteUser(Integer id) {
		dao.deleteEmployee(id);
	}

	@Override
	public List<User> getAllUser() {
		return dao.getAllUser();
	}

	@Override
	public User getUser(Integer id) {
		return dao.getUser(id);
	}

	@Override
	public void insertUser(User user) {
		dao.insertEmployee(user);
	}

	@Override
	public void updateUser(User user) {
		dao.updateEmployee(user);
	}

}
